package com.example.minesweepers;

import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.util.TypedValue;
import android.widget.TextView;

public class ChronometerTextView extends TextView {
	private Context context;

	public ChronometerTextView(Context context) {
		super(context);
		this.context = context;
	}
	
	public void initializeView(int screenWidth, int screenHeight) {
		setTypeface(Typeface.createFromAsset(context.getAssets(), "fonts/minesweeper_font.ttf"));
		setPadding(0, 0, screenWidth/5 - screenWidth/20, 0);
		setTextColor(Color.WHITE);
		setText("000");
		setTextSize(TypedValue.COMPLEX_UNIT_PX, screenHeight/15);
	}

}
